package com.ruoyi.system.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 优惠券对象 luntai_coupons
 * 
 * @author ruoyi
 * @date 2025-02-17
 */
public class LuntaiCoupons extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Integer id;

    /** 类型 1满减 2折扣 */
    @Excel(name = "类型 1满减 2折扣")
    private Integer type;

    /** 折扣 1为金额 2为折扣数 */
    @Excel(name = "折扣 1为金额 2为折扣数")
    private BigDecimal discount;

    /** 用户id */
    @Excel(name = "用户id")
    private Integer userId;

    /** 是否删除 0否1是 */
    @Excel(name = "是否删除 0否1是")
    private Integer isdelete;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setDiscount(BigDecimal discount) 
    {
        this.discount = discount;
    }

    public BigDecimal getDiscount() 
    {
        return discount;
    }
    public void setUserId(Integer userId) 
    {
        this.userId = userId;
    }

    public Integer getUserId() 
    {
        return userId;
    }
    public void setIsdelete(Integer isdelete) 
    {
        this.isdelete = isdelete;
    }

    public Integer getIsdelete() 
    {
        return isdelete;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("discount", getDiscount())
            .append("userId", getUserId())
            .append("isdelete", getIsdelete())
            .toString();
    }
}
